@layout("/common/_container.html",{js:["/assets/store/store_add.js"]}){

<script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>



<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>





<!--新的开店申请页面-->
<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">


            <form id="" lay-filter="" class="layui-form  layui-form-pane"
                  action="">
                <input name="poId" type="hidden"/>

                <fieldset class="layui-elem-field">
                    <legend>开店申请</legend>
                    <div class="layui-field-box">

                        <fieldset class="layui-elem-field layui-field-title">
                            <legend>基础信息</legend>
                            <div class="layui-field-box">


                                <div class="layui-form-item pane">
                                    <label class="layui-form-label">经办人<span
                                            style="color: red;">*</span></label>
                                    <div class="layui-input-block">
                                        <input id="poAgent" name="poAgent" placeholder="" type="text"
                                               class="layui-input"
                                               lay-verify="required" required readonly value="${username}"/>
                                    </div>
                                </div>

                                <div class="layui-form-item pane">
                                    <label class="layui-form-label">经办人部门<span
                                            style="color: red;">*</span></label>
                                    <div class="layui-input-block">
                                        <input id="poAgentDept" name="poAgentDept" placeholder=""
                                               type="text"
                                               class="layui-input"
                                               lay-verify="required" required readonly value="${deptName}"/>
                                    </div>
                                </div>
                            </div>
                        </fieldset>

                        <fieldset class="layui-elem-field layui-field-title">
                            <legend>添加申请</legend>








                            <!--原有的添加数据-->
                            <div class="layui-fluid " style="">
                                <div class="layui-card">
                                    <div class="layui-card-body">
                                        <form id="storeForm" lay-filter="storeForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                                            <input name="id" type="hidden"/>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label">门店名称<span style="color: red;">*</span></label>
                                                <div class="layui-input-block">
                                                    <input id="storeName" name="storeName" placeholder="请输入门店名称" type="text" class="layui-input" lay-verify="required" required/>
                                                </div>
                                            </div>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label">详细地址<span style="color: red;">*</span></label>
                                                <div class="layui-input-block">
                                                    <input id="addressDetail" name="addressDetail" placeholder="请输入详细地址" type="text" class="layui-input" lay-verify="required" required/>
                                                </div>
                                            </div>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label">押金<span style="color: red;">*</span></label>
                                                <div class="layui-input-block">
                                                    <input id="cash" name="cash" placeholder="请输入押金" type="text" class="layui-input" lay-verify="required" required/>
                                                </div>
                                            </div>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label">账号数<span style="color: red;">*</span></label>
                                                <div class="layui-input-block">
                                                    <input id="acountNum" name="acountNum" placeholder="请输入账号数" type="text" class="layui-input" lay-verify="required" required/>
                                                </div>
                                            </div>

                                            <fieldset class="layui-elem-field layui-field-title">
                                                <legend>门店图片</legend>
                                                <div class="layui-field-box" id="imagesBox">
                                                    <input id="picPath" name="picPath" type="hidden" >
                                                    <div class="layui-upload">
                                                        <div class="layui-upload-list">
                                                            <table class="layui-table">
                                                                <thead>
                                                                <tr>
                                                                    <th>文件名</th>
                                                                    <th>图像</th>
                                                                    <th>状态</th>
                                                                    <th>操作</th>
                                                                </tr>
                                                                </thead>
                                                                <tbody id="imageList"></tbody>
                                                            </table>
                                                        </div>
                                                        <button type="button" style="float: right" class="layui-btn" id="start"><i class="layui-icon layui-icon-upload"></i>开始上传</button>
                                                        <button type="button" style="float: right;margin-right: 10px" class="layui-btn-primary layui-btn" id="selectFile"><i class="layui-icon layui-icon-add-1"></i>选择图片
                                                        </button>
                                                    </div>
                                                </div>
                                            </fieldset>

                                            <fieldset class="layui-elem-field layui-field-title">
                                                <legend>附件</legend>
                                                <div class="layui-field-box" id="imagesBox2">
                                                    <input id="accessoryPath" name="accessoryPath" type="hidden" >
                                                    <div class="layui-upload">
                                                        <div class="layui-upload-list">
                                                            <table class="layui-table">
                                                                <thead>
                                                                <tr>
                                                                    <th>文件名</th>
                                                                    <th>图像</th>
                                                                    <th>状态</th>
                                                                    <th>操作</th>
                                                                </tr>
                                                                </thead>
                                                                <tbody id="imageList2"></tbody>
                                                            </table>
                                                        </div>
                                                        <button type="button" style="float: right" class="layui-btn" id="start2"><i class="layui-icon layui-icon-upload"></i>开始上传</button>
                                                        <button type="button" style="float: right;margin-right: 10px" class="layui-btn-primary layui-btn" id="selectFile2"><i class="layui-icon layui-icon-add-1"></i>选择附件
                                                        </button>
                                                        <a href="https://hybn-1259512846.cos.ap-chengdu.myqcloud.com/温州项目下载附件.doc">
                                                        <button type="button" style="float: right;margin-right: 10px" class="layui-btn-primary layui-btn" id="downloadFile"><i class="layui-icon layui-icon-add-1"></i>下载附件
                                                        </button>
                                                        </a>
                                                    </div>
                                                </div>
                                            </fieldset>

                                            <!--<fieldset class="layui-elem-field layui-field-title">-->
                                            <!--<legend>设计图纸</legend>-->
                                            <!--<div class="layui-field-box" id="imagesBox3">-->
                                            <!--<input id="paperPath" name="paperPath" type="hidden" >-->
                                            <!--<div class="layui-upload">-->
                                            <!--<div class="layui-upload-list">-->
                                            <!--<table class="layui-table">-->
                                            <!--<thead>-->
                                            <!--<tr>-->
                                            <!--<th>文件名</th>-->
                                            <!--<th>图像</th>-->
                                            <!--<th>状态</th>-->
                                            <!--<th>操作</th>-->
                                            <!--</tr>-->
                                            <!--</thead>-->
                                            <!--<tbody id="imageList3"></tbody>-->
                                            <!--</table>-->
                                            <!--</div>-->
                                            <!--<button type="button" style="float: right" class="layui-btn" id="start3"><i class="layui-icon layui-icon-upload"></i>开始上传</button>-->
                                            <!--<button type="button" style="float: right;margin-right: 10px" class="layui-btn-primary layui-btn" id="selectFile3"><i class="layui-icon layui-icon-add-1"></i>选择设计图纸-->
                                            <!--</button>-->
                                            <!--</div>-->
                                            <!--</div>-->
                                            <!--</fieldset>-->

                                            <div class="layui-form-item pane">
                                                <label class="layui-form-label">定位<span
                                                        style="color: red;">*</span></label>
                                                <div class="layui-input-block">
                                                    <input id="mapSelect" name="storeLongtitude" placeholder="点击进入地图"
                                                           type="text"
                                                           class="layui-input"
                                                           lay-verify="required" required/>
                                                </div>
                                            </div>

                                            <fieldset class="layui-elem-field layui-field-title">
                                                <legend>备注</legend>
                                                <div class="layui-field-box">
                                                    <div class="row">
                                                        <div class="layui-form-item pane">
                        <textarea id="remark" placeholder="备注" class="layui-textarea fly-editor"
                                  name="remark"></textarea>
                                                        </div>
                                                    </div>
                                                </div>
                                            </fieldset>

                                            <div class="layui-form-item">
                                                <div class="layui-input-block">
                                                    <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                                                    <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                                                </div>
                                            </div>

                                        </form>
                                    </div>
                                </div>
                            </div>












                        </fieldset>
                    </div>
                </fieldset>

            </form>
        </div>
    </div>
</div>













@}